package net.vanchu.mortgagecalculator.mortgage.calculate.mix;

/**
 * 组合贷款的输入
 * <p/>
 * Created by Granton on 2016/12/20.
 */
public class MixLoanWayInputData {

    private int year = 0;

    private float comValue = 0;

    private float proValue = 0;

    private float comRate = 0;

    private float comDiscount = 0;

    private float proRate = 0;

    private float proDiscount = 0;

    public boolean inputValid() {
        if (year == 0) {
            return false;
        }
        if (comValue == 0) {
            return false;
        }
        if (proValue == 0) {
            return false;
        }
        if (comRate == 0) {
            return false;
        }
        if (proRate == 0) {
            return false;
        }
        if (comDiscount == 0) {
            return false;
        }
        if (proDiscount == 0) {
            return false;
        }
        return true;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public float getComValue() {
        return comValue;
    }

    public void setComValue(float comValue) {
        this.comValue = comValue;
    }

    public float getProValue() {
        return proValue;
    }

    public void setProValue(float proValue) {
        this.proValue = proValue;
    }

    public float getComRate() {
        return comRate;
    }

    public void setComRate(float comRate) {
        this.comRate = comRate;
    }

    public float getComDiscount() {
        return comDiscount;
    }

    public void setComDiscount(float comDiscount) {
        this.comDiscount = comDiscount;
    }

    public float getProRate() {
        return proRate;
    }

    public void setProRate(float proRate) {
        this.proRate = proRate;
    }

    public float getProDiscount() {
        return proDiscount;
    }

    public void setProDiscount(float proDiscount) {
        this.proDiscount = proDiscount;
    }
}